<template>
  <div class="my-div">
    <button @click="btnClick()">按钮</button>
  </div>
</template>

<script>
import tleToCzml from '@/views/page/cesium/js/tleToCzml'
export default {
  name: "index",

  methods: {
    btnClick() {
      let sate = [{
        name: 'wjw',
        tle1: '1 25544U 98067A   19156.50900463  .00003075  00000-0  59442-4 0  9992',
        tle2: '2 25544  51.6433  59.2583 0008217  16.4489 347.6017 15.51174618173442'
      }]
      let startTime = new Date("2020-09-18 10:15:00")
      let endTime = new Date("2020-09-18 11:15:00")
      let czmlData = tleToCzml(startTime, endTime, sate)
      console.log(czmlData)
    }
  }

};
</script>

<style scoped>
.my-div {
  width: 100%;
  height: 100%;
}
</style>
